import request from '@/utils/request'

// 查询付账计划列表
export function listPlan(query) {
  return request({
    url: '/finance/payment_plan/list',
    method: 'get',
    params: query
  })
}

// 修改付款
export function payInfo(payForm) {
  return request({
    url: '/finance/payment_plan/updatePayment',
    method: 'post',
    data: payForm
  })
}


// 查询字典集合
export function dictInfo() {
  return request({
    url: '/finance/payment_plan/getDict',
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function getPlan(id) {
  return request({
    url: '/finance/payment_plan/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addPlan(data) {
  return request({
    url: '/finance/payment_plan',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updatePlan(data) {
  return request({
    url: '/finance/payment_plan',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delPlan(id) {
  return request({
    url: '/finance/payment_plan/' + id,
    method: 'delete'
  })
}
